# Contributor: Zoey <zoey@z0ey.de>
# Contributor: Nulo <git@nulo.in>
# Maintainer: Zoey <zoey@z0ey.de>
pkgname=geckodriver
pkgver=0.34.0
pkgrel=0
pkgdesc="Proxy for using W3C WebDriver compatible clients to interact with Gecko-based browsers."
url="https://github.com/mozilla/geckodriver"
arch="all"
license="MPL-2.0"
makedepends="cargo cargo-auditable"
source="$pkgname-$pkgver.tar.gz::https://github.com/mozilla/geckodriver/archive/refs/tags/v$pkgver.tar.gz"

build() {
	cargo auditable build --release --bin geckodriver
}

check() {
	cargo test --release
}

package() {
	install -Dm0755 target/release/$pkgname -t "$pkgdir"/usr/bin
}

sha512sums="
4ef85427db7b3c8a3171d3c9808eb26ad276c734829d3916e1a6b937294befe3e6f0c3980624a21005433aa5caaf270746ce0a383c3fede3ba77b86f6f862b0b  geckodriver-0.34.0.tar.gz
"
